// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.maintenance;
/**
 * @see com.jrsystems.fleet.maintenance.Maintenance
 */
public class MaintenanceDaoImpl
    extends com.jrsystems.fleet.maintenance.MaintenanceDaoBase
{
    /**
     * @see com.jrsystems.fleet.maintenance.MaintenanceDao#toMaintenanceVO(com.jrsystems.fleet.maintenance.Maintenance, com.jrsystems.fleet.maintenance.vo.MaintenanceVO)
     */
    public void toMaintenanceVO(
        com.jrsystems.fleet.maintenance.Maintenance source,
        com.jrsystems.fleet.maintenance.vo.MaintenanceVO target)
    {
        // @todo verify behavior of toMaintenanceVO
        super.toMaintenanceVO(source, target);
        // WARNING! No conversion for target.vehicle (can't convert source.getVehicle():com.jrsystems.fleet.vehicle.Vehicle to com.jrsystems.fleet.vehicle.vo.VehicleVO
        // WARNING! No conversion for target.replacedParts (can't convert source.getReplacedParts():com.jrsystems.fleet.vehicle.Part to com.jrsystems.fleet.vehicle.vo.PartVO
    }


    /**
     * @see com.jrsystems.fleet.maintenance.MaintenanceDao#toMaintenanceVO(com.jrsystems.fleet.maintenance.Maintenance)
     */
    public com.jrsystems.fleet.maintenance.vo.MaintenanceVO toMaintenanceVO(final com.jrsystems.fleet.maintenance.Maintenance entity)
    {
        // @todo verify behavior of toMaintenanceVO
        return super.toMaintenanceVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.maintenance.Maintenance loadMaintenanceFromMaintenanceVO(com.jrsystems.fleet.maintenance.vo.MaintenanceVO maintenanceVO)
    {
        // @todo implement loadMaintenanceFromMaintenanceVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.maintenance.loadMaintenanceFromMaintenanceVO(com.jrsystems.fleet.maintenance.vo.MaintenanceVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.maintenance.Maintenance maintenance = this.load(maintenanceVO.getId());
        if (maintenance == null)
        {
            maintenance = com.jrsystems.fleet.maintenance.Maintenance.Factory.newInstance();
        }
        return maintenance;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.maintenance.MaintenanceDao#maintenanceVOToEntity(com.jrsystems.fleet.maintenance.vo.MaintenanceVO)
     */
    public com.jrsystems.fleet.maintenance.Maintenance maintenanceVOToEntity(com.jrsystems.fleet.maintenance.vo.MaintenanceVO maintenanceVO)
    {
        // @todo verify behavior of maintenanceVOToEntity
        com.jrsystems.fleet.maintenance.Maintenance entity = this.loadMaintenanceFromMaintenanceVO(maintenanceVO);
        this.maintenanceVOToEntity(maintenanceVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.maintenance.MaintenanceDao#maintenanceVOToEntity(com.jrsystems.fleet.maintenance.vo.MaintenanceVO, com.jrsystems.fleet.maintenance.Maintenance)
     */
    public void maintenanceVOToEntity(
        com.jrsystems.fleet.maintenance.vo.MaintenanceVO source,
        com.jrsystems.fleet.maintenance.Maintenance target,
        boolean copyIfNull)
    {
        // @todo verify behavior of maintenanceVOToEntity
        super.maintenanceVOToEntity(source, target, copyIfNull);
    }

}